/*
 * XML Type:  IncPosition
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.IncPosition
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML IncPosition(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class IncPositionImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.IncPosition
{
    
    public IncPositionImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DTASOF$0 = 
        new javax.xml.namespace.QName("", "DTASOF");
    private static final javax.xml.namespace.QName INCLUDE$2 = 
        new javax.xml.namespace.QName("", "INCLUDE");
    
    
    /**
     * Gets the "DTASOF" element
     */
    public java.lang.String getDTASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTASOF$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTASOF" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTASOF$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTASOF" element
     */
    public boolean isSetDTASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTASOF$0) != 0;
        }
    }
    
    /**
     * Sets the "DTASOF" element
     */
    public void setDTASOF(java.lang.String dtasof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTASOF$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTASOF$0);
            }
            target.setStringValue(dtasof);
        }
    }
    
    /**
     * Sets (as xml) the "DTASOF" element
     */
    public void xsetDTASOF(net.ofx.types.x2003.x04.DateTimeType dtasof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTASOF$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTASOF$0);
            }
            target.set(dtasof);
        }
    }
    
    /**
     * Unsets the "DTASOF" element
     */
    public void unsetDTASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTASOF$0, 0);
        }
    }
    
    /**
     * Gets the "INCLUDE" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getINCLUDE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDE$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "INCLUDE" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetINCLUDE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(INCLUDE$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "INCLUDE" element
     */
    public void setINCLUDE(net.ofx.types.x2003.x04.BooleanType.Enum include)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INCLUDE$2);
            }
            target.setEnumValue(include);
        }
    }
    
    /**
     * Sets (as xml) the "INCLUDE" element
     */
    public void xsetINCLUDE(net.ofx.types.x2003.x04.BooleanType include)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(INCLUDE$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(INCLUDE$2);
            }
            target.set(include);
        }
    }
}
